import { createSSRApp } from "vue";
import App from "./App.vue";
import pinia from './stores';
import uView from './uni_modules/vk-uview-ui';
import Layout from '@/components/layout/layout.vue';
import InfoBlock from '@/components/info-block/info-block.vue';
import SectionTitle from '@/components/section-title/section-title.vue';
import ScrollRefresher from '@/components/scroll-refresher/scroll-refresher.vue';
import LoginPopup from '@/components/login-popup/login-popup.vue';
import "./index.scss";


export function createApp() {
	const app = createSSRApp(App);
	app.use(pinia);
	app.use(uView);
	app.component('Layout', Layout);
	app.component('InfoBlock', InfoBlock);
	app.component('SectionTitle', SectionTitle);
	app.component('ScrollRefresher', ScrollRefresher);
	app.component('LoginPopup', LoginPopup);
	console.log(app.version)
	return {
		app,
	};
}